package com.jhsw.roadsun.module.business.controller.admin.expressagegoods.vo;

import com.jhsw.roadsun.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.jhsw.roadsun.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 寄件货物信息分页 Request VO")
@Data
public class ExpressageGoodsPageReqVO extends PageParam {

    @Schema(description = "寄件ID", example = "21240")
    private Long expressageId;

    @Schema(description = "名称", example = "李四")
    private String name;

    @Schema(description = "单价", example = "12021")
    private BigDecimal unitPrice;

    @Schema(description = "数量")
    private Long num;

    @Schema(description = "货物总价格", example = "21680")
    private BigDecimal totalPrice;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}